import math
n=input()
max_=float('-inf')
min_=float('inf')
for i in n:
    if i >max_:
       max_=i
    if i<min_:
       min_=i
print(max)
print(min)
def r(n):  
    if not n:
        return 0
    else:
        return(not int(n[0])%2)+r(n[1:])
print(r(n))

count=0
while(n>0):
    count=count+1
print('Кол-во цифр равна:;count)

sqrt-number = math.sqrt(input_number)
print(sqrt_number == int(sqrt_number))
                      
                      
            
